<?php
class User extends AppModel {
	var $name = 'User';

	var $hasMany = array('Deal');
	
	var $validate = array(
		'username' => array(
			'email' => array(
				'rule' => 'email',
				'message' => 'Please retype your email!'
				),
				
			'notEmpty' => array(
					'rule' => 'notEmpty',
					'required' => true,
					'message' => 'You cannot leave this field blank.'
				)
			),
			
		'name' => array(
			'rule' => 'notEmpty',
			'required' => true,
			'message' => 'You cannot leave this field blank.'
		),
		
		'password_confirm' => array(
			'minLength' => array(
					'rule' => array('minLength', '6'),
					'required' => true,
					'message' => 'Minimum 6 characters long'
					),
			
			'notEmpty' => array(
					'rule' => 'notEmpty',
					'required' => true,
					'message' => 'You cannot leave this field blank.'
				)
		),
	);
	
	function member_count_update($force_update = false)
	{
		// No longer needed
	}
	
	
}
?>